ItemBanner   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A render 0 3 1
1
import React, { Component } from 'react';
2
import PropTypes from 'prop-types';
3
import { Card } from 'reactstrap';
4
import ItemBannerHeader from './ItemBannerHeader';
5
import ItemBannerBody from './ItemBannerBody';
6
7
class ItemBanner extends Component {
8
  static Header = ItemBannerHeader;
9
  static Body = ItemBannerBody;
10
11
  render() {
12
    return <Card className="mb-3">{this.props.children}</Card>;
13
  }
14
}
15
16
ItemBanner.propTypes = { children: PropTypes.node };
17
18
export default ItemBanner;
19